<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>培养人数</title>
		<style>
			span {
				color: red;
			}
		</style>
	</head>

	<body>
		<script>
			var i = 25;
			var j = 2012;

			while(i <= 1000) {
				i = i * 1.25;
				j++;
				document.write(j + "年培养了：<span>" + Math.round(i) + "</span>万人<br/>");

				}
		</script>
	</body>

</html>